﻿#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main()
{
	int i = 1, n = 0, a = 1;
	scanf("%d", &n);
	for (i = 1; i <= n; i++)
		a = a * i;
	printf("%d", a);
	return 0;
}